<!DOCTYPE html>
<!--[if IE 9]> <html class="ie9 no-focus" lang="zh"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-focus" lang="zh"> <!--<![endif]-->
<head>
    <meta charset="utf-8">

    <title>{block name="title"}{:config('app.web_site_title')}{/block}</title>

    <meta name="description" content="{:config('app.web_site_description')}">
    <meta name="keywords" content="{:config('app.web_site_keywords')}">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
    {block name="meta"}{/block}

    {block name="link"}
    <!-- Icons -->
    <!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers -->
    <link rel="shortcut icon" href="__ADMIN_IMG__/favicons/favicon.ico">
    <!-- END Icons -->
    {/block}

    <!-- Stylesheets -->
    <link rel="stylesheet" href="__LIBS__/layui/css/layui.css?v={:config('app.asset_version')}">
	<link rel="stylesheet" href="__STATIC__/css/base.css?v={:config('app.asset_version')}">
	<link rel="stylesheet" href="__STATIC__/css/font/iconfont.css?v={:config('app.asset_version')}">
	<!-- END Stylesheets -->
    {block name="style"}{/block}
</head>
<body id="{$Request.app|strtolower}-{$Request.controller|strtolower}-{$Request.action|strtolower}">
{block name="header"}
<div class="header">
	<div class="layui-header">
		<div class="layui-logo"><img class="logo-img" src="__STATIC__/admin/img/logo.png"/><img class="logo-img" src="__STATIC__/images/logo.png"/></div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<ul class="layui-nav layui-layout-left">
			{notempty name="user"}
			<li class="layui-nav-item{eq name='$Request.action' value='index'} layui-this{/eq}"><a href="{:url('merch/index/index')}">收银台</a></li>
			<li class="layui-nav-item{eq name='$Request.action' value='orderlist'} layui-this{/eq}"><a href="{:url('merch/order/orderlist')}">订单管理</a></li>
			<li class="layui-nav-item{eq name='$Request.action' value='countorder'} layui-this{/eq}"><a href="{:url('merch/manager/countorder')}">订单统计</a></li>
			{/notempty}
		</ul>
		<ul class="layui-nav layui-layout-right">
			{notempty name="user"}
			<li class="layui-nav-item">
		      <a><img src="{$user.avatar_img}" class="layui-nav-img">{$user.nickname|default=""}</a>
			  <dl class="layui-nav-child">
				<dd><a>ID：{$user.id}</a></dd>
			  </dl>
		    </li>
			<li class="layui-nav-item"><a href="{:url('merch/index/logout')}">退出</a></li>
			{else /}
			<li class="layui-nav-item{eq name='$Request.action' value='login'} layui-this{/eq}">
			  <a href="{:url('merch/index/login')}"><img src="__STATIC__/admin/img/none.png" class="layui-nav-img">登录</a>
			</li>
			{/notempty}
		</ul>
	</div>
</div>
{/block}
<!-- Page Container -->
{block name="container"}
{/block}
<!-- END Page Container -->
{block name="footer"}
<div class="layui-footer">
{:config('app.web_site_copyright')} <a href="https://beian.miit.gov.cn/" target="_blank">{:config('app.web_site_icp')}</a>
</div>
{/block}
<div class="hidden">
    {// 站点统计代码}
    {:config('app.web_site_statistics')}
    {block name="hidden"}{/block}
</div>

<script src="__ADMIN_JS__/core/jquery.min.js"></script>
<script src="__LIBS__/layui/layui.js"></script>

<!-- Page JS Code -->
<script>
layui.use(['element', 'layer'], function(){
  var element = layui.element;
  var layer = layui.layer;
});
</script>
{block name="script"}{/block}
</body>
</html>